<?php
// namespace demo;
/**
 *
 * @authors  Ysg (y.shi.guo@gmail.com)
 * @website  http://ysg.bonza.cn
 * @date     2017-07-24 11:43:02
 */

header("Content-type:text/html;charset:utf8;");
header("Pragma: no-cache");
header("Pragma: no-cache");

date_default_timezone_set('PRC');

define("ROOT_PATH",realpath('.'));

// echo ROOT_PATH;
/*if (!defined('ROOT_PATH')) {
	define('ROOT_PATH',dirname(__FILE__));
	# code...
}else{
	echo "常量已经定义";
}
*/

// echo constant('ROOT_PATH');

/**
*
*/
class Hoifun
{
	const Hoifun = "www.hoifun.com";

	function __construct()
	{
		# code...
	}
}

// echo constant('Hoifun::Hoifun');
// echo Hoifun::Hoifun;
// echo $_SERVER['HTTP_USER_AGENT'];
// echo $_GET['name'];die;
// $b = $_GET['name'];
// $a = "echo $b;";
// eval($a);
// echo php_strip_whitespace ("login.php");


// sleep(5);

// echo date('Y-m-d');

// echo md5(time()).uniqid('Hoi');

header("Content-type:application/pdf");

// It will be called downloaded.pdf
header("Content-Disposition:attachment;filename='downloaded.pdf'");

// The PDF source is in original.pdf
readfile("hoifun.pdf");
